package com.sjm.learn.jdk8;

public class LambdaDemo3 {

	final static String salutation = "Hello! ";
	
	public static void main(String[] args) {
		GreetingService greetService1 = 
				message -> System.out.println(salutation + message);
	    greetService1.sayMessage("Runoob");
	}

	interface GreetingService {
	    void sayMessage(String message);
	}
}
